<%--
 - Copyright (c) 2009-2011 ETCORE Labs. All rights reserved. 
 - 
 - This software is the confidential and proprietary information of ETCORE Labs. 
 - You shall not disclose such confidential information and shall use it only
 - in accordance with the terms of the license agreement you entered into
 - with ETCORE Labs.
 -
 - Support can be obtained from support forums at:
 - http://www.etcore.com/
 -
 - @author: ETCORE GroupTalk developers
 -
 --%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/taglibs/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.etcore.com/grouptalk" prefix="grouptalk"%>
<link rel="stylesheet" href="/group/css/styles.css" type="text/css">
<table width="100%" cellspacing="0" cellpadding="0" border=0
	style="margin-top: -10px;">
	<tr>
		<td colspan=2 align=center valign=top style="font-size: 12px;"><font
			color=blue> <c:out value='${context.members}' /></font> ( <b><c:out
			value='${all}' /> </b> )</td>
	</tr>

	<c:forEach var="user" items="${groupFollowers }">
		<c:url value="viewUser${context.postfix}" var="userUrl">
			<c:param name="targetUserName" value="${user.userName }" />
		</c:url>
		<tr>
			<td
				style="border-bottom: 1px dashed #d2d4d2; font-size: 12px; color: #005EAC"
				width=40 align=center><a target=_parent
				style="font-size: 12px; color: #005EAC" href="/group/${userUrl }"><c:if
				test="${not empty user.avatar &&fn:indexOf(user.avatar,'upload')!=-1 }">
				<img style="margin-top: 2px;" " src="${user.avatar}" width=24
					border=0 />
			</c:if><c:if
				test="${empty user.avatar||fn:indexOf(user.avatar,'upload')==-1 }">
				<img src="/group/images/avatar/avatar.jpg" width=24 border=0 />
			</c:if> </a></td>
			<td style="border-bottom: 1px dashed #d2d4d2"><a target=_parent
				style="font-size: 12px; color: #005EAC" href="/group/${userUrl }"><c:out
				value='${user.userName }' /></a></td><td align=right><c:if test="${manage}"><a href="/group/groupFollowers${context.postfix}?gid=${param.gid}&cmd=remove&userName=${user.userName }" title="${context.del }" > <img src="/group/images/close.gif"> </a></c:if></td>


		</tr>

	</c:forEach>



</table>
<table>
	<tr bgcolor="#ffffff">
		<td align=left colspan=3><c:set var="pid" value="${startpid }" />
		<c:forEach begin="${startpid }" end="${endpid }" step="1">

			<c:set var="url"
				value="/group/groupFollowers${context.postfix}?gid=${param.gid}&pageid=${pid }" />
			<a  
				<c:if test='${intpageid==pid }'> style="font-weight:bold;color:red;"</c:if>
				href="${url }">[<c:out value='${pid}' />]</a>
			<c:set var="pid" value="${pid+1 }" />
&nbsp;</c:forEach> <c:if test="${intpageid>1 }">
			<c:set var="url"
				value="/group/groupFollowers${context.postfix}?pageid=${intpageid-1}&gid=${param.gid} " />

			<a href="${url }" style="font-size:12px;">  <c:out value='${context.previous_page}' /> 
			</a>
		</c:if> &nbsp; <c:if test="${intpageid<pagenums }">

			<c:set var="url"
				value="/group/groupFollowers${context.postfix}?pageid=${intpageid+1}&gid=${param.gid} " />

			<a href="${url }" style="font-size:12px;">  <c:out value='${context.next_page}' />  </a>

</c:if></td>
	</tr>
	 
</table>


<br />
<c:if test="${all2>0 }">
<table width="100%" cellspacing="0" cellpadding="0" border=0>
	<tr>
		<td colspan=2 align=center valign=top style="font-size: 12px;"><font
			color=blue> <c:out value='${context.applicants}' /></font> ( <b><c:out
			value='${all2}' /> </b> )</td>
	</tr>

	<c:forEach var="user" items="${restrictedFollowers }">
		<c:url value="viewUser${context.postfix}" var="userUrl">
			<c:param name="targetUserName" value="${user.userName }" />
		</c:url>
		<tr>
			<td
				style="border-bottom: 1px dashed #d2d4d2; font-size: 12px; color: #005EAC"
				width=40 align=center><a target=_parent
				style="font-size: 12px; color: #005EAC" href="/group/${userUrl }"><c:if
				test="${not empty user.avatar &&fn:indexOf(user.avatar,'upload')!=-1 }">
				<img style="margin-top: 2px;" " src="${user.avatar}" width=24
					border=0 />
			</c:if><c:if
				test="${empty user.avatar||fn:indexOf(user.avatar,'upload')==-1 }">
				<img src="/group/images/avatar/avatar.jpg" width=24 border=0 />
			</c:if> </a></td>
			<td style="border-bottom: 1px dashed #d2d4d2"><a target=_parent
				style="font-size: 12px; color: #005EAC" href="/group/${userUrl }"><c:out
				value='${user.userName }' /></a></td><td align=right><c:if test="${manage}"><a href="/group/groupFollowers${context.postfix}?gid=${param.gid}&cmd=accept&userName=${user.userName }" title="${context.accept }"><img src="/group/images/arrows.png"></a></c:if></td>


		</tr>

	</c:forEach>

<tr bgcolor="#ffffff">
		<td align=left colspan=3><c:set var="pid" value="${startpid2 }" />
		<c:forEach begin="${startpid2 }" end="${endpid2 }" step="1">

			<c:set var="url"
				value="/group/groupFollowers${context.postfix}?gid=${param.gid}&pageid2=${pid }" />
			<a  
				<c:if test='${intpageid2==pid }'> style="font-weight:bold;color:red;"</c:if>
				href="${url }">[<c:out value='${pid}' />]</a>
			<c:set var="pid" value="${pid+1 }" />
&nbsp;</c:forEach> <c:if test="${intpageid2>1 }">
			<c:set var="url"
				value="/group/groupFollowers${context.postfix}?pageid2=${intpageid-1}&gid=${param.gid} " />

			<a href="${url }" style="font-size:12px;">  <c:out value='${context.previous_page}' /> 
			</a>
		</c:if> &nbsp; <c:if test="${intpageid2<pagenums2 }">

			<c:set var="url"
				value="/group/groupFollowers${context.postfix}?pageid2=${intpageid2+1}&gid=${param.gid} " />

			<a href="${url }" style="font-size:12px;">  <c:out value='${context.next_page}' />  </a>

</c:if></td>
	</tr>

</table>
 </c:if>